﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DishManagement.aspx.cs" Inherits="Business_Booking_DishManagement"
    Theme="normal" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>菜式信息管理</title>

    <script language="javascript" src="../../../js/Basic/BasicPage.js" type="text/jscript">            
    </script>

</head>
<body style="background-color: #fcf6ec">
    <form id="form1" runat="server">
        <%--<div class="hycdnav">
            <div class="hycdcontent">
                订餐管理>>>菜式信息管理</div>
        </div--%>
        >
        <div class="normalnav">
            <div class="normalcontent">
                <span style="color: #ffffff">套餐服务>>></span><span style="color: #f6ff00">菜式信息管理</span></div>
        </div>
        <!-- 操作按钮 -->
        <div class="normalmenu" style="position: absolute; z-index: 100;">
            <div class="normalmenucontent" style="padding-left: 10px;">
                <!-- 全选图标按钮 -->
                <asp:CheckBox ID="chcAll" runat="server" AutoPostBack="false" Text="全选" onclick="javascript:SelectAllCheckboxes(this)" />
                &nbsp;&nbsp;
                <!-- 删除图标按钮 -->
                <asp:ImageButton ID="ibtnDelete" runat="server" ImageUrl="../../../Images/Basic/shanchu.gif"
                    OnClick="ibtnDelete_Click" ToolTip="删除" OnClientClick="return confirm('你确定删除吗？');" />
                &nbsp;删除 &nbsp;&nbsp;
                <!-- 新增图标按钮 -->
                <asp:ImageButton ID="ibtnAdd" runat="server" ImageUrl="../../../Images/Basic/tianjia.gif"
                    OnClick="ibtnAdd_Click" ToolTip="新增" />
                &nbsp;新增 &nbsp; 查询菜式名称
                <asp:TextBox ID="tb_Search" runat="server"></asp:TextBox>
                <asp:ImageButton ID="imgbtn_Search" runat="server" OnClick="imgbtn_Search_Click"
                    ImageUrl="~/Images/Basic/chaxun.gif" />
                查询
            </div>
        </div>
        <!-- 数据展示 -->
        <div class="normalgrid2" style="padding-left: 10px;">
            <asp:GridView ID="GridView1" runat="server" SkinID="Normal" OnPageIndexChanging="GridView1_PageIndexChanging"
                EmptyDataText="暂无" OnRowDataBound="GridView1_RowDataBound" AutoGenerateColumns="false"
                OnRowCommand="GridView1_RowCommand" OnRowEditing="GridView1_RowEditing">
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <ItemTemplate>
                            <asp:CheckBox runat="server" ID="cb_id"></asp:CheckBox>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="序号" Visible="false">
                        <ItemTemplate>
                            <asp:Label ID="lbl_No" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="规则标识" Visible="False" HeaderStyle-Width="40px" HeaderStyle-Height="35px">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="LblID" Text='<%# Eval("DishID")%>' />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField Visible="false" HeaderText="编号">
                        <ItemTemplate>
                            <asp:Label ID="lbl_DishID" Text='<%# Eval("DishID") %>' runat="server" />
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="菜式名称">
                        <ItemTemplate>
                            <asp:Label ID="lbl_DishName" Text='<%# Eval("DishName") %>' runat="server" />
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="150px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="菜式代码">
                        <ItemTemplate>
                            <asp:Label ID="lbl_DishCode" Text='<%# Eval("DishCode") %>' runat="server" />
                        </ItemTemplate>
                        <HeaderStyle HorizontalAlign="Center" Width="100px" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="菜式价格">
                        <ItemTemplate>
                            <asp:Label ID="lbl_DishPrice" Text='<%# Eval("DishPrice").ToString().Substring(0,Eval("DishPrice").ToString().Length-2)%>'
                                runat="server" />
                        </ItemTemplate>
                        <HeaderStyle Width="150px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="备注">
                        <ItemTemplate>
                            <asp:Label ID="lbl_DishRemark" Text='<%# Eval("DishRemark") %>' runat="server" />
                        </ItemTemplate>
                        <HeaderStyle Width="150px" HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtn_Eidt" runat="server" CommandName="edit" CommandArgument='<%# Eval("DishID") %>'>修改</asp:LinkButton>
                        </ItemTemplate>
                        <HeaderStyle Width="70px" HorizontalAlign="Center" />
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <!-- 分页 -->
        <div class="normalpager1" style="padding-ritht: 50px;">
            <asp:Label ID="lblNumbers" runat="server"></asp:Label>&nbsp;&nbsp;
            <asp:LinkButton ID="btnFirst" OnClick="PagerButtonClick" runat="server" CommandArgument="0"
                CausesValidation="False">最首页</asp:LinkButton>&nbsp;
            <asp:LinkButton ID="btnPrev" OnClick="PagerButtonClick" runat="server" CommandArgument="prev"
                CausesValidation="False">前一页</asp:LinkButton>&nbsp;
            <asp:Label ID="lblCurrentIndex" runat="server"></asp:Label>&nbsp;/&nbsp;
            <asp:Label ID="lblPageCount" runat="server"></asp:Label>
            <asp:LinkButton ID="btnNext" OnClick="PagerButtonClick" runat="server" CommandArgument="next"
                CausesValidation="False">后一页</asp:LinkButton>&nbsp;
            <asp:LinkButton ID="btnLast" OnClick="PagerButtonClick" runat="server" CommandArgument="last"
                CausesValidation="False">最后页</asp:LinkButton>
        </div>
    </form>
</body>
</html>
